package com.caojing.syby.ui.welcome;

import android.content.Intent;

import com.caojing.syby.R;
import com.caojing.syby.base.BaseActivity;
import com.caojing.syby.ui.main.MainActivity;

import java.util.Timer;
import java.util.TimerTask;

public class WelcomeActivity extends BaseActivity {

    @Override
    protected int getLayoutId() {
        return R.layout.activity_welcome;
    }

    protected void initView() {
        TimerTask task = new TimerTask() {
            @Override
            public void run() {
                startActivity(new Intent(WelcomeActivity.this,MainActivity.class));
                WelcomeActivity.this.finish();
            }
        };
        Timer timer = new Timer();
        timer.schedule(task,3000);
    }

    @Override
    protected void initData() {

    }
}
